﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using XWord.Fundamental.Domain;

namespace XWord.WPF.ApplicationFramework
{
    public class CategorySearch : BaseSearch
    {
        public override IEnumerable Query()
       {
           if (SearchObject != null)
               return (SearchObject as Category).Words.OfType<Word>().ToObservableCollection();
           return null;
       }
    }
}
